package com.tomryan.TLabel.service;

import com.tomryan.TLabel.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tomryan.TLabel.model.User;

import java.util.List;

/**
 * Created by TangRunQing on 2018/01/30.
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User validLogin(String userName, String passWord) {
        return userMapper.validLogin(userName, passWord);
    }

    public User selectUser(String userId) {
        return userMapper.getUserByUserId(userId);
    }
}
